package com.bw.zonghe0719.adapter

import android.widget.TextView
import com.bw.base.entity.Menu
import com.bw.zonghe0719.R
import com.bw.zonghe0719.utils.GlideUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class MenuAdapter:BaseQuickAdapter<Menu,BaseViewHolder>(R.layout.item_menu) {
    override fun convert(holder: BaseViewHolder, item: Menu) {
        GlideUtils.loadCircleImage(context,item.pic,holder.getView(R.id.menu_iv))
        holder.getView<TextView>(R.id.menu_tv).text=item.name
    }
}